import { initUrl } from '@/config/axios_config'

///rest/dict/listDictsByCode listDictsByCode
export const getDictsByCode = data => initUrl(`/rest/dict/listDictsByCode`, data, 'GET')

///rest/dictType/list  list
export const getDictsList = data => initUrl(`/rest/dictType/list`, data, 'POST')

///rest/dictType/editItem editItem
export const editDictType = data => initUrl(`/rest/dictType/editItem`, data, 'POST')

///rest/dictType/addItem addItem
export const addDictType = data => initUrl(`/rest/dictType/addItem`, data, 'POST')

///rest/dictType/delete  delete
export const deleteDictType = data => initUrl(`/rest/dictType/delete`, data, 'POST')
/****************************************/

///rest/dict/list list
export const getDictsListById = data => initUrl(`/dict/list`, data, 'GET')

///rest/dict/detail detail
export const getDictDetails = data => initUrl(`/dict/detail`, data, 'GET')

///rest/dict/editItem editItem
export const editDict = data => initUrl(`/dict/editItem`, data, 'POST')

///rest/dict/addItem addItem
export const addDict = data => initUrl(`/dict/addItem`, data, 'POST')

////rest/dict/ztree
export const getDictTree = data => initUrl(`/dict/ztree`, data, 'GET')

///rest/dict/delete  delete
export const deleteDict = data => initUrl(`/dict/delete`, data, 'POST')
